import request from '@/utils/request'

// 查询会员数据列表
export function listShow(query) {
  return request({
    url: '/huiyuan/show/list',
    method: 'get',
    params: query
  })
}

// 查询会员数据详细
export function getShow(huiyuanId) {
  return request({
    url: '/huiyuan/show/' + huiyuanId,
    method: 'get'
  })
}

// 新增会员数据
export function addShow(data) {
  return request({
    url: '/huiyuan/show',
    method: 'post',
    data: data
  })
}

// 修改会员数据
export function updateShow(data) {
  return request({
    url: '/huiyuan/show',
    method: 'put',
    data: data
  })
}

// 删除会员数据
export function delShow(huiyuanId) {
  return request({
    url: '/huiyuan/show/' + huiyuanId,
    method: 'delete'
  })
}
